(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["order"], {
    "0c4f": function (e, t, a) {
        "use strict";
        a("868c")
    }, "0d4b": function (e, t, a) {
        "use strict";
        a.r(t);
        a("b0c0");
        var r = function () {
                var e = this, t = e._self._c;
                return t("div", {staticClass: "container"}, [t("a-card", {
                    staticClass: "mb-20",
                    attrs: {bordered: !1}
                }, [t("div", {staticClass: "card-title"}, [e._v(e._s(e.$route.meta.title))]), t("a-alert", {
                    staticClass: "mb-20",
                    attrs: {
                        showIcon: !1,
                        message: "功能说明：此功能用于订单数据导出，导出后的文件请用Excel打开查看",
                        banner: ""
                    }
                }), t("a-form", {
                    staticClass: "my-form",
                    attrs: {form: e.myForm, layout: "inline"},
                    on: {submit: e.handleSubmit}
                }, [t("a-row", {attrs: {gutter: 24}}, [t("a-col", {attrs: {span: 12}}, [t("a-form-item", {attrs: {label: "下单时间"}}, [t("a-range-picker", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["betweenTime", {rules: [{required: !0, message: "请选择下单时间"}]}],
                        expression: "['betweenTime', { rules: [{ required: true, message: '请选择下单时间' }] }]"
                    }], attrs: {format: "YYYY-MM-DD"}
                })], 1)], 1), t("a-col", {attrs: {span: 12}}, [t("a-form-item", {attrs: {label: "订单来源"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["orderSource", {initialValue: -1}],
                        expression: "['orderSource', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.OrderSourceEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1)], 1), t("a-col", {attrs: {span: 12}}, [t("a-form-item", {attrs: {label: "支付方式"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["payType", {initialValue: -1, rules: [{required: !0, message: "请选择支付方式"}]}],
                        expression: "['payType', { initialValue: -1, rules: [{ required: true, message: '请选择支付方式' }] } ]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.PayTypeEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1)], 1), t("a-col", {attrs: {span: 12}}, [t("a-form-item", {attrs: {label: "配送方式"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["deliveryType", {initialValue: -1}],
                        expression: "['deliveryType', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.DeliveryTypeEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1)], 1), t("a-col", {attrs: {span: 24}}, [t("a-form-item", {
                    staticClass: "item-main",
                    attrs: {label: "导出的字段"}
                }, [t("a-checkbox-group", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["columns", {
                            initialValue: e.columnValue,
                            rules: [{required: !0, message: "请选择导出的字段"}]
                        }],
                        expression: "['columns', { initialValue: columnValue, rules: [{ required: true, message: '请选择导出的字段' }] }]"
                    }], attrs: {options: e.columnData}
                })], 1)], 1), t("a-col", {attrs: {span: 24}}, [t("a-form-item", {staticClass: "form-btn"}, [t("a-button", {
                    staticClass: "btn-main",
                    attrs: {type: "primary", icon: "download", "html-type": "submit", loading: e.isBtnLoading}
                }, [e._v("导出")]), t("a-button", {on: {click: e.handleReset}}, [e._v("重置")])], 1)], 1)], 1)], 1)], 1), t("a-card", {attrs: {bordered: !1}}, [t("div", {staticClass: "card-title"}, [e._v("历史导出记录")]), t("ExportList", {ref: "ExportList"})], 1)], 1)
            }, s = [], i = (a("d3b7"), a("8ded")), n = a.n(i), o = a("c1df"), l = a.n(o), d = a("ca00"), u = a("b775"),
            c = {exportOrder: "/order.export/exportOrder", list: "/order.export/list"};

        function m(e) {
            return Object(u["b"])({url: c.exportOrder, method: "get", params: e})
        }

        function p(e) {
            return Object(u["b"])({url: c.list, method: "get", params: e})
        }

        var _, v = a("4a95"), f = function () {
                var e = this, t = e._self._c;
                return t("s-table", {
                    ref: "table",
                    attrs: {rowKey: "id", loading: e.isLoading, columns: e.columns, data: e.loadData, pageSize: 10},
                    scopedSlots: e._u([{
                        key: "time", fn: function (a) {
                            return [t("span", [e._v(e._s(a.start_time))]), t("span", {staticClass: "ml-5 mr-5"}, [e._v("到")]), t("span", [e._v(e._s(a.end_time))])]
                        }
                    }, {
                        key: "status", fn: function (a) {
                            return [t("a-tag", {attrs: {color: e.ExportStatusColorEnum[a]}}, [e._v(e._s(e.ExportStatusEnum[a].name))])]
                        }
                    }, {
                        key: "action", fn: function (a, r) {
                            return t("span", {staticClass: "actions"}, [r.status === e.ExportStatusEnum.COMPLETED.value ? t("a", {
                                directives: [{
                                    name: "action",
                                    rawName: "v-action:download",
                                    arg: "download"
                                }], attrs: {href: r.download_url, target: "_blank"}
                            }, [e._v("下载")]) : e._e()])
                        }
                    }])
                })
            }, b = [], h = a("ade3"), g = a("2af9"), y = a("5c06"),
            C = new y["a"]([{key: "NORMAL", name: "进行中", value: 10}, {
                key: "COMPLETED",
                name: "已完成",
                value: 20
            }, {key: "FAIL", name: "失败", value: 30}]),
            E = (_ = {}, Object(h["a"])(_, C.NORMAL.value, ""), Object(h["a"])(_, C.COMPLETED.value, "green"), Object(h["a"])(_, C.FAIL.value, "red"), _),
            S = {
                name: "ExportList", components: {STable: g["c"]}, data: function () {
                    return {
                        isLoading: !1,
                        ExportStatusEnum: C,
                        ExportStatusColorEnum: E,
                        columns: [{title: "记录ID", dataIndex: "id"}, {
                            title: "下单时间",
                            scopedSlots: {customRender: "time"}
                        }, {title: "导出时间", dataIndex: "create_time"}, {
                            title: "导出状态",
                            dataIndex: "status",
                            scopedSlots: {customRender: "status"}
                        }, {title: "操作", width: "180px", scopedSlots: {customRender: "action"}}],
                        loadData: function (e) {
                            return p(e).then((function (e) {
                                return e.data.list
                            }))
                        }
                    }
                }, watch: {
                    value: {
                        immediate: !0, handler: function (e) {
                            this.imgUrl = e
                        }
                    }
                }, created: function () {
                }, methods: {
                    handleRefresh: function () {
                        var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
                        this.$refs.table.refresh(e)
                    }
                }
            }, L = S, R = a("2877"), x = Object(R["a"])(L, f, b, !1, null, "f6a64ab8", null), w = x.exports,
            D = [{label: "订单ID", value: "order_id"}, {label: "订单号", value: "order_no"}, {
                label: "商品信息",
                value: "goods_detail"
            }, {label: "商品总额", value: "total_price"}, {
                label: "优惠券抵扣金额",
                value: "coupon_money"
            }, {label: "积分抵扣金额", value: "points_money"}, {
                label: "后台改价",
                value: "update_price"
            }, {label: "运费金额", value: "express_price"}, {
                label: "订单实付款",
                value: "pay_price"
            }, {label: "支付方式", value: "pay_type"}, {label: "下单时间", value: "create_time"}, {
                label: "买家信息",
                value: "user_info"
            }, {label: "买家留言", value: "buyer_remark"}, {
                label: "配送方式",
                value: "delivery_type"
            }, {label: "收货人", value: "receipt_name"}, {
                label: "联系电话",
                value: "receipt_phone"
            }, {label: "收货地址", value: "receipt_address"}, {
                label: "物流公司",
                value: "express_company"
            }, {label: "物流单号", value: "express_no"}, {label: "付款状态", value: "pay_status"}, {
                label: "付款时间",
                value: "pay_time"
            }, {label: "发货状态", value: "delivery_status"}, {
                label: "发货时间",
                value: "delivery_time"
            }, {label: "收货状态", value: "receipt_status"}, {
                label: "收货时间",
                value: "receipt_time"
            }, {label: "订单状态", value: "order_status"}, {
                label: "是否已评价",
                value: "is_comment"
            }, {label: "订单来源", value: "order_source"}],
            O = ["order_no", "goods_detail", "total_price", "coupon_money", "points_money", "update_price", "express_price", "pay_price", "pay_type", "create_time", "user_info", "buyer_remark", "delivery_type", "receipt_name", "receipt_phone", "receipt_address", "express_company", "express_no", "pay_status", "pay_time", "delivery_status", "delivery_time", "receipt_status", "receipt_time", "order_status", "order_source"],
            I = "order_export_form", T = {
                name: "Export", components: {ExportList: w}, data: function () {
                    return {
                        myForm: this.$form.createForm(this),
                        isLoading: !1,
                        isBtnLoading: !1,
                        labelCol: {span: 8},
                        wrapperCol: {span: 16},
                        columnData: D,
                        columnValue: O
                    }
                }, created: function () {
                    this.setFieldsValue()
                }, beforeCreate: function () {
                    Object(d["a"])(this, {
                        inArray: d["e"],
                        DeliveryTypeEnum: v["b"],
                        OrderSourceEnum: v["c"],
                        OrderStatusEnum: v["d"],
                        PayTypeEnum: v["f"]
                    })
                }, methods: {
                    setFieldsValue: function () {
                        var e = n.a.get(I);
                        if (!Object(d["f"])(e)) {
                            e.betweenTime = [l()(e.betweenTime[0]), l()(e.betweenTime[1])];
                            var t = this.myForm.setFieldsValue;
                            this.$nextTick((function () {
                                return t(e)
                            }))
                        }
                    }, handleSubmit: function (e) {
                        var t = this;
                        e.preventDefault(), this.myForm.validateFields((function (e, a) {
                            e || (t.onSave2Local(a), t.onFormSubmit(a))
                        }))
                    }, onSave2Local: function (e) {
                        n.a.set(I, e, 1296e6)
                    }, onFormSubmit: function (e) {
                        var t = this;
                        t.isLoading = !0, t.isBtnLoading = !0, m(e).then((function (e) {
                            t.$message.success(e.message, 1.5), t.$refs.ExportList.handleRefresh()
                        })).finally((function (e) {
                            t.isLoading = !1, t.isBtnLoading = !1
                        }))
                    }, handleReset: function () {
                        this.myForm.resetFields(), n.a.remove(I)
                    }
                }
            }, k = T, A = (a("af3e"), Object(R["a"])(k, r, s, !1, null, "42428b70", null));
        t["default"] = A.exports
    }, "2a66": function (e, t, a) {
        "use strict";
        a.d(t, "e", (function () {
            return i
        })), a.d(t, "b", (function () {
            return n
        })), a.d(t, "a", (function () {
            return o
        })), a.d(t, "d", (function () {
            return l
        })), a.d(t, "c", (function () {
            return d
        }));
        var r = a("b775"), s = {
            list: "/setting.express/list",
            all: "/setting.express/all",
            add: "/setting.express/add",
            edit: "/setting.express/edit",
            delete: "/setting.express/delete"
        };

        function i(e) {
            return Object(r["b"])({url: s.list, method: "get", params: e})
        }

        function n(e) {
            return Object(r["b"])({url: s.all, method: "get", params: e})
        }

        function o(e) {
            return Object(r["b"])({url: s.add, method: "post", data: e})
        }

        function l(e) {
            return Object(r["b"])({url: s.edit, method: "post", data: e})
        }

        function d(e) {
            return Object(r["b"])({url: s.delete, method: "post", data: e})
        }
    }, "3a10": function (e, t, a) {
        "use strict";
        a.d(t, "b", (function () {
            return i
        })), a.d(t, "a", (function () {
            return n
        }));
        var r = a("b775"), s = {list: "/order/list", detail: "/order/detail"};

        function i(e) {
            return Object(r["b"])({url: s.list, method: "get", params: e})
        }

        function n(e) {
            return Object(r["b"])({url: s.detail, method: "get", params: e})
        }
    }, "3fdb": function (e, t, a) {
        "use strict";
        a("677f")
    }, 4290: function (e, t, a) {
    }, "4362a": function (e, t, a) {
    }, "4a95": function (e, t, a) {
        "use strict";
        a.d(t, "a", (function () {
            return s
        })), a.d(t, "b", (function () {
            return i
        })), a.d(t, "c", (function () {
            return n
        })), a.d(t, "d", (function () {
            return o
        })), a.d(t, "e", (function () {
            return l
        })), a.d(t, "f", (function () {
            return d
        })), a.d(t, "g", (function () {
            return u
        }));
        var r = a("5c06"), s = new r["a"]([{key: "NOT_DELIVERED", name: "未发货", value: 10}, {
                key: "DELIVERED",
                name: "已发货",
                value: 20
            }]), i = new r["a"]([{key: "EXPRESS", name: "快递配送", value: 10}]),
            n = new r["a"]([{key: "MASTER", name: "普通订单", value: 10}]),
            o = new r["a"]([{key: "NORMAL", name: "进行中", value: 10}, {
                key: "CANCELLED",
                name: "已取消",
                value: 20
            }, {key: "APPLY_CANCEL", name: "待取消", value: 21}, {key: "COMPLETED", name: "已完成", value: 30}]),
            l = new r["a"]([{key: "PENDING", name: "待支付", value: 10}, {key: "SUCCESS", name: "已支付", value: 20}]),
            d = new r["a"]([{key: "BALANCE", name: "余额支付", value: 10}, {
                key: "WECHAT",
                name: "微信支付",
                value: 20
            }]), u = new r["a"]([{key: "NOT_RECEIVED", name: "未收货", value: 10}, {
                key: "RECEIVED",
                name: "已收货",
                value: 20
            }])
    }, "4d55": function (e, t, a) {
        "use strict";
        a.d(t, "e", (function () {
            return i
        })), a.d(t, "b", (function () {
            return n
        })), a.d(t, "a", (function () {
            return o
        })), a.d(t, "d", (function () {
            return l
        })), a.d(t, "c", (function () {
            return d
        }));
        var r = a("b775"), s = {
            list: "/store.address/list",
            all: "/store.address/all",
            add: "/store.address/add",
            edit: "/store.address/edit",
            delete: "/store.address/delete"
        };

        function i(e) {
            return Object(r["b"])({url: s.list, method: "get", params: e})
        }

        function n(e) {
            return Object(r["b"])({url: s.all, method: "get", params: e})
        }

        function o(e) {
            return Object(r["b"])({url: s.add, method: "post", data: e})
        }

        function l(e) {
            return Object(r["b"])({url: s.edit, method: "post", data: e})
        }

        function d(e) {
            return Object(r["b"])({url: s.delete, method: "post", data: e})
        }
    }, "56db": function (e, t, a) {
        "use strict";
        a.r(t);
        a("b0c0");
        var r = function () {
                var e = this, t = e._self._c;
                return t("div", [t("a-spin", {attrs: {spinning: e.isLoading}}), e.isLoading ? e._e() : t("div", {staticClass: "detail-content"}, [t("a-card", {attrs: {bordered: !1}}, [e.record.status == e.RefundStatusEnum.NORMAL.value ? t("div", {staticClass: "detail-actions"}, [t("div", {staticClass: "ant-descriptions-title"}, [e._v("售后单操作")]), t("div", {staticClass: "alerts mt-10 mb-15"}, [e.record.audit_status == e.AuditStatusEnum.WAIT.value ? t("a-alert", {
                    attrs: {
                        message: "当前买家已发起售后申请，请及时审核处理",
                        banner: ""
                    }
                }) : e._e()], 1), t("div", {staticClass: "actions mt-10"}, [e.$auth("/order/refund/index.audit") ? t("div", [e.record.audit_status == e.AuditStatusEnum.WAIT.value ? t("a-button", {
                    attrs: {type: "primary"},
                    on: {click: e.handleAudit}
                }, [e._v("商家审核")]) : e._e()], 1) : e._e(), e.$auth("/order/refund/index.receipt") ? t("div", [e.record.type == e.RefundTypeEnum.RETURN.value && e.record.audit_status == e.AuditStatusEnum.REVIEWED.value && e.record.is_user_send && !e.record.is_receipt ? t("a-button", {
                    attrs: {type: "primary"},
                    on: {click: e.handleReceipt}
                }, [e._v("确认收货")]) : e._e()], 1) : e._e()]), t("a-divider", {staticClass: "o-divider"})], 1) : e._e(), t("a-descriptions", {attrs: {title: "售后单信息"}}, [t("a-descriptions-item", {attrs: {label: "订单号"}}, [t("router-link", {
                    attrs: {
                        title: "查看订单详情",
                        to: {path: "/order/detail", query: {orderId: e.record.order_id}},
                        target: "_blank"
                    }
                }, [e._v(e._s(e.record.orderData.order_no))])], 1), t("a-descriptions-item", {attrs: {label: "买家信息"}}, [t("a-tooltip", [t("template", {slot: "title"}, [e._v("会员ID: " + e._s(e.record.user.user_id))]), t("span", {staticClass: "c-p"}, [e._v(e._s(e.record.user.nick_name))])], 2)], 1), t("a-descriptions-item", {attrs: {label: "订单支付总额"}}, [t("span", {staticClass: "c-p"}, [t("span", [e._v("￥")]), t("span", [e._v(e._s(e.record.orderData.pay_price))])])]), t("a-descriptions-item", {attrs: {label: "售后类型"}}, [t("a-tag", [e._v(e._s(e.RefundTypeEnum[e.record.type].name))])], 1), t("a-descriptions-item", {attrs: {label: "售后单状态"}}, [t("a-tag", {attrs: {color: e.renderRefundStatusColor(e.record.status)}}, [e._v(e._s(e.RefundStatusEnum[e.record.status].name))])], 1), t("a-descriptions-item", {attrs: {label: "申请时间"}}, [e._v(e._s(e.record.create_time))])], 1), t("a-divider", {staticClass: "o-divider"}), t("a-descriptions", {attrs: {title: "处理进度"}}, [t("a-descriptions-item", {attrs: {label: "审核状态 (商家)"}}, [t("a-tag", {attrs: {color: e.renderAuditStatusColor(e.record.audit_status)}}, [e._v(e._s(e.AuditStatusEnum[e.record.audit_status].name))])], 1), e.record.type == e.RefundTypeEnum.RETURN.value ? t("a-descriptions-item", {attrs: {label: "发货状态 (买家)"}}, [t("a-tag", {attrs: {color: e.record.is_user_send ? "green" : ""}}, [e._v(e._s(e.record.is_user_send ? "已发货" : "待发货"))])], 1) : e._e(), e.record.type == e.RefundTypeEnum.RETURN.value ? t("a-descriptions-item", {attrs: {label: "收货状态 (商家)"}}, [t("a-tag", {attrs: {color: e.record.is_receipt ? "green" : ""}}, [e._v(e._s(e.record.is_receipt ? "已收货" : "待收货"))])], 1) : e._e(), e.record.audit_status == e.AuditStatusEnum.REJECTED.value ? t("a-descriptions-item", {attrs: {label: "拒绝原因"}}, [t("span", [e._v(e._s(e.record.refuse_desc))])]) : e._e()], 1)], 1), t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("a-descriptions", {attrs: {title: "买家申请原因"}}, [t("a-descriptions-item", {attrs: {label: "售后描述"}}, [e._v(e._s(e.record.apply_desc ? e.record.apply_desc : "--"))])], 1), e.record.images.length ? [t("a-divider", {staticClass: "o-divider"}), t("a-descriptions", {attrs: {title: "申请凭证"}}, [t("a-descriptions-item", [t("div", {staticClass: "image-list"}, e._l(e.record.images, (function (e) {
                    return t("div", {key: e.image_id, staticClass: "file-item"}, [t("a", {
                        attrs: {
                            href: e.image_url,
                            target: "_blank"
                        }
                    }, [t("div", {
                        staticClass: "img-cover",
                        style: {backgroundImage: "url('".concat(e.image_url, "')")}
                    })])])
                })), 0)])], 1)] : e._e()], 2), t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("div", {staticClass: "ant-descriptions-title"}, [e._v("售后商品")]), t("div", {staticClass: "goods-list"}, [t("a-table", {
                    attrs: {
                        rowKey: "order_goods_id",
                        columns: e.goodsColumns,
                        dataSource: [e.record.orderGoods],
                        pagination: !1
                    }, scopedSlots: e._u([{
                        key: "goodsInfo", fn: function (e, a) {
                            return [t("GoodsItem", {
                                attrs: {
                                    data: {
                                        image: a.goods_image,
                                        imageAlt: "商品图片",
                                        title: a.goods_name,
                                        goodsProps: a.goods_props
                                    }
                                }
                            })]
                        }
                    }, {
                        key: "goods_no", fn: function (a) {
                            return t("span", {}, [e._v(e._s(a || "--"))])
                        }
                    }, {
                        key: "goods_price", fn: function (t) {
                            return [e._v("￥" + e._s(t))]
                        }
                    }, {
                        key: "total_num", fn: function (a) {
                            return t("span", {}, [e._v("x" + e._s(a))])
                        }
                    }, {
                        key: "total_pay_price", fn: function (a) {
                            return t("span", {}, [e._v("￥" + e._s(a))])
                        }
                    }], null, !1, 113254456)
                })], 1)]), e.record.audit_status == e.AuditStatusEnum.REVIEWED.value ? t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("a-descriptions", {attrs: {title: "商家退货地址"}}, [t("a-descriptions-item", {attrs: {label: "收货人姓名"}}, [e._v(e._s(e.record.address.name))]), t("a-descriptions-item", {attrs: {label: "联系电话"}}, [e._v(e._s(e.record.address.phone))]), t("a-descriptions-item", {attrs: {label: "所在地区"}}, e._l(e.record.address.region, (function (a, r) {
                    return t("span", {key: r, staticClass: "region mr-5"}, [e._v(e._s(a))])
                })), 0), t("a-descriptions-item", {attrs: {label: "详细地址"}}, [e._v(e._s(e.record.address.detail))])], 1)], 1) : e._e(), e.record.type == e.RefundTypeEnum.RETURN.value && e.record.audit_status == e.AuditStatusEnum.REVIEWED.value && e.record.is_user_send ? t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("a-descriptions", {attrs: {title: "退货物流信息"}}, [t("a-descriptions-item", {attrs: {label: "物流公司"}}, [e._v(e._s(e.record.express.express_name))]), t("a-descriptions-item", {attrs: {label: "物流单号"}}, [e._v(e._s(e.record.express_no))]), t("a-descriptions-item", {attrs: {label: "发货状态"}}, [t("a-tag", {attrs: {color: e.record.is_user_send ? "green" : ""}}, [e._v(e._s(e.record.is_user_send ? "已发货" : "待发货"))])], 1), t("a-descriptions-item", {attrs: {label: "发货时间"}}, [e._v(e._s(e.record.send_time))])], 1)], 1) : e._e()], 1), t("AuditForm", {
                    ref: "AuditForm",
                    on: {handleSubmit: e.handleRefresh}
                }), t("ReceiptForm", {ref: "ReceiptForm", on: {handleSubmit: e.handleRefresh}})], 1)
            }, s = [], i = a("ade3"), n = (a("d3b7"), a("ca00")), o = a("e585"), l = a("ab09"), d = a("6ab1"),
            u = a("b4a5"), c = [{title: "商品信息", scopedSlots: {customRender: "goodsInfo"}}, {
                title: "商品编码",
                dataIndex: "goods_no",
                scopedSlots: {customRender: "goods_no"}
            }, {title: "重量(Kg)", dataIndex: "goods_weight", scopedSlots: {customRender: "goods_weight"}}, {
                title: "单价",
                dataIndex: "goods_price",
                scopedSlots: {customRender: "goods_price"}
            }, {title: "购买数量", dataIndex: "total_num", scopedSlots: {customRender: "total_num"}}, {
                title: "实际付款价",
                dataIndex: "total_pay_price",
                scopedSlots: {customRender: "total_pay_price"}
            }], m = {
                name: "Index",
                components: {GoodsItem: l["a"], UserItem: l["c"], AuditForm: u["a"], ReceiptForm: u["b"]},
                data: function () {
                    return {isLoading: !0, orderRefundId: null, record: {}, goodsColumns: c, goodsList: []}
                },
                beforeCreate: function () {
                    Object(n["a"])(this, {AuditStatusEnum: d["a"], RefundStatusEnum: d["b"], RefundTypeEnum: d["c"]})
                },
                created: function () {
                    this.orderRefundId = this.$route.query.orderRefundId, this.handleRefresh()
                },
                methods: {
                    handleRefresh: function () {
                        this.getDetail()
                    }, getDetail: function () {
                        var e = this, t = this.orderRefundId;
                        this.isLoading = !0, o["b"]({orderRefundId: t}).then((function (t) {
                            e.record = t.data.detail, e.goodsList = [e.record.orderGoods]
                        })).finally((function () {
                            e.isLoading = !1
                        }))
                    }, renderAuditStatusColor: function (e) {
                        var t, a = this.AuditStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.WAIT.value, ""), Object(i["a"])(t, a.REVIEWED.value, "green"), Object(i["a"])(t, a.REJECTED.value, "red"), t);
                        return r[e]
                    }, renderRefundStatusColor: function (e) {
                        var t, a = this.RefundStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.NORMAL.value, ""), Object(i["a"])(t, a.REJECTED.value, "red"), Object(i["a"])(t, a.COMPLETED.value, "green"), Object(i["a"])(t, a.CANCELLED.value, "red"), t);
                        return r[e]
                    }, handleAudit: function () {
                        var e = this.record;
                        this.$refs.AuditForm.show(e)
                    }, handleReceipt: function () {
                        var e = this.record;
                        this.$refs.ReceiptForm.show(e)
                    }
                }
            }, p = m, _ = (a("f0a9"), a("2877")), v = Object(_["a"])(p, r, s, !1, null, "30f2b0fc", null);
        t["default"] = v.exports
    }, "5cd4": function (e, t, a) {
        "use strict";
        a("4362a")
    }, "677f": function (e, t, a) {
    }, "6ab1": function (e, t, a) {
        "use strict";
        a.d(t, "a", (function () {
            return s
        })), a.d(t, "b", (function () {
            return i
        })), a.d(t, "c", (function () {
            return n
        }));
        var r = a("5c06"), s = new r["a"]([{key: "WAIT", name: "待审核", value: 0}, {
                key: "REVIEWED",
                name: "已同意",
                value: 10
            }, {key: "REJECTED", name: "已拒绝", value: 20}]), i = new r["a"]([{key: "NORMAL", name: "进行中", value: 0}, {
                key: "REJECTED",
                name: "已拒绝",
                value: 10
            }, {key: "COMPLETED", name: "已完成", value: 20}, {key: "CANCELLED", name: "已取消", value: 30}]),
            n = new r["a"]([{key: "RETURN", name: "退货退款", value: 10}, {key: "EXCHANGE", name: "换货", value: 20}])
    }, "7ebd": function (e, t, a) {
    }, "868c": function (e, t, a) {
    }, "884a": function (e, t, a) {
        "use strict";
        a.d(t, "c", (function () {
            return i
        })), a.d(t, "d", (function () {
            return n
        })), a.d(t, "a", (function () {
            return o
        })), a.d(t, "b", (function () {
            return l
        }));
        var r = a("b775"), s = {
            delivery: "/order.event/delivery",
            updatePrice: "/order.event/updatePrice",
            confirmCancel: "/order.event/confirmCancel",
            delete: "/order.event/delete"
        };

        function i(e) {
            return Object(r["b"])({url: s.delivery, method: "post", data: e})
        }

        function n(e) {
            return Object(r["b"])({url: s.updatePrice, method: "post", data: e})
        }

        function o(e) {
            return Object(r["b"])({url: s.confirmCancel, method: "post", data: e})
        }

        function l(e) {
            return Object(r["b"])({url: s.delete, method: "post", data: {orderId: e}})
        }
    }, a4b5: function (e, t, a) {
    }, ab06: function (e, t, a) {
        "use strict";
        a.r(t);
        a("b0c0");
        var r = function () {
                var e = this, t = e._self._c;
                return t("div", [t("a-spin", {attrs: {spinning: e.isLoading}}), e.isLoading ? e._e() : t("div", {staticClass: "order-content"}, [t("a-card", {attrs: {bordered: !1}}, [t("div", {
                    staticClass: "order-progress",
                    class: "progress-".concat(e.progress)
                }, [t("ul", [t("li", [t("span", [e._v("下单时间")]), t("div", {staticClass: "tip"}, [e._v(e._s(e.record.create_time))])]), t("li", [t("span", [e._v("付款")]), e.record.pay_status == e.PayStatusEnum.SUCCESS.value ? t("div", {staticClass: "tip"}, [e._v("付款于 " + e._s(e.record.pay_time))]) : e._e()]), t("li", [t("span", [e._v("发货")]), e.record.delivery_status == e.DeliveryStatusEnum.DELIVERED.value ? t("div", {staticClass: "tip"}, [e._v("发货于 " + e._s(e.record.delivery_time))]) : e._e()]), t("li", [t("span", [e._v("收货")]), e.record.receipt_status == e.ReceiptStatusEnum.RECEIVED.value ? t("div", {staticClass: "tip"}, [e._v("收货于 " + e._s(e.record.receipt_time))]) : e._e()]), t("li", [t("span", [e._v("完成")]), e.record.order_status == e.OrderStatusEnum.COMPLETED.value ? t("div", {staticClass: "tip"}, [e._v("完成于 " + e._s(e.record.receipt_time))]) : e._e()])])])]), t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [e.record.order_status != e.OrderStatusEnum.CANCELLED.value ? [t("div", {staticClass: "ant-descriptions-title"}, [e._v("订单操作")]), t("div", {staticClass: "alerts mt-10 mb-15"}, [e.record.order_status == e.OrderStatusEnum.APPLY_CANCEL.value ? t("a-alert", {
                    attrs: {
                        message: "当前买家已付款并申请取消订单，请审核是否同意，如同意则自动退回付款金额（原路退款）并关闭订单。",
                        banner: ""
                    }
                }) : e._e()], 1), t("div", {staticClass: "actions clearfix mt-10"}, [e.$auth("/order/detail.updatePrice") ? t("div", {staticClass: "action-item"}, [e.record.pay_status == e.PayStatusEnum.PENDING.value ? t("a-button", {on: {click: e.handleUpdatePrice}}, [e._v("订单改价")]) : e._e()], 1) : e._e(), e.$auth("/order/list/all.deliver") ? t("div", {staticClass: "action-item"}, [e.record.pay_status != e.PayStatusEnum.SUCCESS.value || e.record.delivery_type != e.DeliveryTypeEnum.EXPRESS.value || e.record.delivery_status != e.DeliveryStatusEnum.NOT_DELIVERED.value || e.inArray(e.record.order_status, [e.OrderStatusEnum.CANCELLED.value, e.OrderStatusEnum.APPLY_CANCEL.value]) ? e._e() : t("a-button", {
                    attrs: {type: "primary"},
                    on: {click: e.handleDelivery}
                }, [e._v("发货")])], 1) : e._e(), e.$auth("/order/list/all.cancel") ? t("div", {staticClass: "action-item"}, [e.record.order_status == e.OrderStatusEnum.APPLY_CANCEL.value ? t("a-button", {
                    attrs: {type: "primary"},
                    on: {click: e.handleCancel}
                }, [e._v("审核取消订单")]) : e._e()], 1) : e._e()]), t("a-divider", {staticClass: "o-divider"})] : e._e(), t("a-descriptions", {attrs: {title: "订单信息"}}, [t("a-descriptions-item", {attrs: {label: "订单号"}}, [e._v(e._s(e.record.order_no))]), t("a-descriptions-item", {attrs: {label: "实付款金额"}}, [e._v("￥" + e._s(e.record.pay_price))]), t("a-descriptions-item", {attrs: {label: "支付方式"}}, [t("a-tag", {attrs: {color: "green"}}, [e._v(e._s(e.PayTypeEnum[e.record.pay_type].name))])], 1), t("a-descriptions-item", {attrs: {label: "配送方式"}}, [t("a-tag", {attrs: {color: "green"}}, [e._v(e._s(e.DeliveryTypeEnum[e.record.delivery_type].name))])], 1), t("a-descriptions-item", {attrs: {label: "运费金额"}}, [e._v("￥" + e._s(e.record.express_price))]), t("a-descriptions-item", {attrs: {label: "订单状态"}}, [t("a-tag", {attrs: {color: e.renderOrderStatusColor(e.record.order_status)}}, [e._v(e._s(e.OrderStatusEnum[e.record.order_status].name))])], 1), t("a-descriptions-item", {attrs: {label: "买家信息"}}, [t("a-tooltip", [t("template", {slot: "title"}, [e._v("会员ID: " + e._s(e.record.user.user_id))]), t("span", {staticClass: "c-p"}, [e._v(e._s(e.record.user.nick_name))])], 2)], 1), t("a-descriptions-item", {attrs: {label: "买家留言"}}, [e.record.buyer_remark ? t("strong", [e._v(e._s(e.record.buyer_remark))]) : t("span", [e._v("--")])])], 1)], 2), t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("div", {staticClass: "ant-descriptions-title"}, [e._v("订单商品")]), t("div", {staticClass: "goods-list"}, [t("a-table", {
                    attrs: {
                        rowKey: "order_goods_id",
                        columns: e.goodsColumns,
                        dataSource: e.record.goods,
                        pagination: !1
                    }, scopedSlots: e._u([{
                        key: "goodsInfo", fn: function (e, a) {
                            return [t("GoodsItem", {
                                attrs: {
                                    data: {
                                        image: a.goods_image,
                                        imageAlt: "商品图片",
                                        title: a.goods_name,
                                        goodsProps: a.goods_props
                                    }
                                }
                            })]
                        }
                    }, {
                        key: "goods_no", fn: function (a) {
                            return t("span", {}, [e._v(e._s(a || "--"))])
                        }
                    }, {
                        key: "goods_price", fn: function (a, r) {
                            return [t("p", {class: {"f-through": r.is_user_grade}}, [e._v("￥" + e._s(a))]), r.is_user_grade ? t("p", [t("a-tooltip", [t("template", {slot: "title"}, [t("span", {staticClass: "f-13"}, [e._v("会员等级折扣价")])]), t("strong", [e._v("会员价：")]), t("span", [e._v("￥" + e._s(r.grade_goods_price))])], 2)], 1) : e._e()]
                        }
                    }, {
                        key: "total_num", fn: function (a) {
                            return t("span", {}, [e._v("x" + e._s(a))])
                        }
                    }, {
                        key: "total_price", fn: function (a) {
                            return t("span", {}, [e._v("￥" + e._s(a))])
                        }
                    }], null, !1, 369901077)
                }), t("div", {staticClass: "order-price"}, [t("table", {staticClass: "fl-r"}, [t("tbody", [t("tr", [t("td", [e._v("订单总额：")]), t("td", [e._v("￥" + e._s(e.record.total_price))])]), e.record.coupon_money > 0 ? t("tr", [t("td", [e._v("优惠券抵扣：")]), t("td", [e._v("-￥" + e._s(e.record.coupon_money))])]) : e._e(), e.record.points_money > 0 ? t("tr", [t("td", [e._v("积分抵扣：")]), t("td", [e._v("-￥" + e._s(e.record.points_money))])]) : e._e(), 0 != e.record.update_price.value ? t("tr", [t("td", [e._v("商家改价：")]), t("td", [e._v(e._s(e.record.update_price.symbol) + "￥" + e._s(e.record.update_price.value))])]) : e._e(), t("tr", [t("td", [e._v("运费金额：")]), t("td", [e._v("+￥" + e._s(e.record.express_price))])]), t("tr", [t("td", [e._v("实付款金额：")]), t("td", [t("strong", [e._v("￥" + e._s(e.record.pay_price))])])])])])])], 1)]), e.record.delivery_type == e.DeliveryTypeEnum.EXPRESS.value ? t("a-card", {
                    staticClass: "mt-20",
                    attrs: {bordered: !1}
                }, [t("a-descriptions", {attrs: {title: "收货信息"}}, [t("a-descriptions-item", {attrs: {label: "收货人姓名"}}, [e._v(e._s(e.record.address.name))]), t("a-descriptions-item", {attrs: {label: "联系电话"}}, [e._v(e._s(e.record.address.phone))]), t("a-descriptions-item", {attrs: {label: "收货地区"}}, [e._v(" " + e._s(e.record.address.region.province) + " " + e._s(e.record.address.region.city) + " " + e._s(e.record.address.region.region) + " ")]), t("a-descriptions-item", {attrs: {label: "详细地址"}}, [e._v(e._s(e.record.address.detail))])], 1), e.record.pay_status != e.PayStatusEnum.SUCCESS.value || e.record.delivery_status != e.DeliveryStatusEnum.DELIVERED.value || e.inArray(e.record.order_status, [e.OrderStatusEnum.CANCELLED.value, e.OrderStatusEnum.APPLY_CANCEL.value]) ? e._e() : [t("a-divider", {staticClass: "o-divider"}), t("a-descriptions", {attrs: {title: "发货信息"}}, [t("a-descriptions-item", {attrs: {label: "物流公司"}}, [e._v(e._s(e.record.express.express_name))]), t("a-descriptions-item", {attrs: {label: "物流单号"}}, [e._v(e._s(e.record.express_no))]), t("a-descriptions-item", {attrs: {label: "发货状态"}}, [t("a-tag", {attrs: {color: e.record.delivery_status == e.DeliveryStatusEnum.DELIVERED.value ? "green" : ""}}, [e._v(e._s(e.DeliveryStatusEnum[e.record.delivery_status].name))])], 1), t("a-descriptions-item", {attrs: {label: "发货时间"}}, [e._v(e._s(e.record.delivery_time))])], 1)]], 2) : e._e()], 1), t("DeliveryForm", {
                    ref: "DeliveryForm",
                    on: {handleSubmit: e.handleRefresh}
                }), t("CancelForm", {
                    ref: "CancelForm",
                    on: {handleSubmit: e.handleRefresh}
                }), t("PriceForm", {ref: "PriceForm", on: {handleSubmit: e.handleRefresh}})], 1)
            }, s = [], i = a("ade3"), n = (a("d3b7"), a("ca00")), o = a("3a10"), l = a("ab09"), d = a("ac82"),
            u = a("4a95"), c = [{title: "商品信息", scopedSlots: {customRender: "goodsInfo"}}, {
                title: "商品编码",
                dataIndex: "goods_no",
                scopedSlots: {customRender: "goods_no"}
            }, {title: "重量(Kg)", dataIndex: "goods_weight", scopedSlots: {customRender: "goods_weight"}}, {
                title: "单价",
                dataIndex: "goods_price",
                scopedSlots: {customRender: "goods_price"}
            }, {title: "购买数量", dataIndex: "total_num", scopedSlots: {customRender: "total_num"}}, {
                title: "商品总价",
                dataIndex: "total_price",
                scopedSlots: {customRender: "total_price"}
            }], m = {
                name: "Index",
                components: {
                    GoodsItem: l["a"],
                    UserItem: l["c"],
                    DeliveryForm: d["b"],
                    CancelForm: d["a"],
                    PriceForm: d["c"]
                },
                data: function () {
                    return {
                        DeliveryStatusEnum: u["a"],
                        DeliveryTypeEnum: u["b"],
                        OrderSourceEnum: u["c"],
                        OrderStatusEnum: u["d"],
                        PayStatusEnum: u["e"],
                        PayTypeEnum: u["f"],
                        ReceiptStatusEnum: u["g"],
                        inArray: n["e"],
                        isLoading: !0,
                        orderId: null,
                        record: {},
                        progress: 2,
                        goodsColumns: c
                    }
                },
                created: function () {
                    this.orderId = this.$route.query.orderId, this.handleRefresh()
                },
                methods: {
                    handleRefresh: function () {
                        this.getDetail()
                    }, getDetail: function () {
                        var e = this, t = this.orderId;
                        this.isLoading = !0, o["a"]({orderId: t}).then((function (t) {
                            e.record = t.data.detail, e.initData()
                        })).finally((function () {
                            e.isLoading = !1
                        }))
                    }, initData: function () {
                        this.initProgress()
                    }, initProgress: function () {
                        var e = this.record;
                        this.progress = 2, e.pay_status === u["e"].SUCCESS.value && (this.progress += 1), e.delivery_status === u["a"].DELIVERED.value && (this.progress += 1), e.receipt_status === u["g"].RECEIVED.value && (this.progress += 1)
                    }, renderOrderStatusColor: function (e) {
                        var t, a = this.OrderStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.NORMAL.value, ""), Object(i["a"])(t, a.CANCELLED.value, "red"), Object(i["a"])(t, a.APPLY_CANCEL.value, "red"), Object(i["a"])(t, a.COMPLETED.value, "green"), t);
                        return r[e]
                    }, handleDelivery: function () {
                        var e = this.record;
                        this.$refs.DeliveryForm.show(e)
                    }, handleCancel: function () {
                        var e = this.record;
                        this.$refs.CancelForm.show(e)
                    }, handleUpdatePrice: function () {
                        var e = this.record;
                        this.$refs.PriceForm.show(e)
                    }
                }
            }, p = m, _ = (a("b7a7"), a("2877")), v = Object(_["a"])(p, r, s, !1, null, "28d6a36f", null);
        t["default"] = v.exports
    }, ac82: function (e, t, a) {
        "use strict";
        a.d(t, "b", (function () {
            return c
        })), a.d(t, "a", (function () {
            return b
        })), a.d(t, "c", (function () {
            return R
        }));
        var r = function () {
            var e = this, t = e._self._c;
            return t("a-modal", {
                attrs: {
                    title: e.title,
                    width: 580,
                    visible: e.visible,
                    isLoading: e.isLoading,
                    confirmLoading: e.isLoading,
                    maskClosable: !1
                }, on: {ok: e.handleSubmit, cancel: e.handleCancel}
            }, [t("a-spin", {attrs: {spinning: e.isLoading}}, [t("a-form", {attrs: {form: e.form}}, [t("a-form-item", {
                attrs: {
                    label: "物流公司",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol
                }
            }, [t("a-select", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["express_id", {rules: [{required: !0, message: "请选择物流公司"}]}],
                    expression: "['express_id', { rules: [{ required: true, message: '请选择物流公司' }] }]"
                }], attrs: {placeholder: "请选择物流公司"}
            }, e._l(e.expressList, (function (a, r) {
                return t("a-select-option", {key: r, attrs: {value: a.express_id}}, [e._v(e._s(a.express_name))])
            })), 1), t("div", {staticClass: "form-item-help"}, [t("router-link", {
                attrs: {
                    target: "_blank",
                    to: {path: "/setting/delivery/express/index"}
                }
            }, [e._v("物流公司管理")])], 1)], 1), t("a-form-item", {
                attrs: {
                    label: "物流单号",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol,
                    extra: "请手动录入物流单号或快递单号"
                }
            }, [t("a-input", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["express_no", {rules: [{required: !0, message: "请输入物流单号"}]}],
                    expression: "['express_no', { rules: [{ required: true, message: '请输入物流单号' }] }]"
                }]
            })], 1)], 1)], 1)], 1)
        }, s = [], i = (a("d3b7"), a("884a")), n = a("2a66"), o = {
            data: function () {
                return {
                    title: "订单发货",
                    labelCol: {span: 7},
                    wrapperCol: {span: 13},
                    visible: !1,
                    isLoading: !1,
                    form: this.$form.createForm(this),
                    expressList: [],
                    record: {}
                }
            }, created: function () {
                this.getExpressList()
            }, methods: {
                show: function (e) {
                    this.visible = !0, this.record = e
                }, getExpressList: function () {
                    var e = this;
                    this.isLoading = !0, n["b"]().then((function (t) {
                        return e.expressList = t.data.list
                    })).finally((function () {
                        return e.isLoading = !1
                    }))
                }, handleSubmit: function (e) {
                    var t = this;
                    e.preventDefault();
                    var a = this.form.validateFields;
                    a((function (e, a) {
                        !e && t.onFormSubmit(a)
                    }))
                }, handleCancel: function () {
                    this.visible = !1, this.form.resetFields()
                }, onFormSubmit: function (e) {
                    var t = this;
                    this.isLoading = !0, i["c"]({orderId: this.record.order_id, form: e}).then((function (a) {
                        t.$message.success(a.message, 1.5), t.handleCancel(), t.$emit("handleSubmit", e)
                    })).finally((function () {
                        return t.isLoading = !1
                    }))
                }
            }
        }, l = o, d = a("2877"), u = Object(d["a"])(l, r, s, !1, null, null, null), c = u.exports, m = function () {
            var e = this, t = e._self._c;
            return t("a-modal", {
                attrs: {
                    title: e.title,
                    width: 560,
                    visible: e.visible,
                    isLoading: e.isLoading,
                    confirmLoading: e.isLoading,
                    maskClosable: !1
                }, on: {ok: e.handleSubmit, cancel: e.handleCancel}
            }, [t("a-spin", {attrs: {spinning: e.isLoading}}, [t("a-form", {attrs: {form: e.form}}, [t("a-form-item", {
                attrs: {
                    label: "实付款金额",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol
                }
            }, [t("span", [e._v("￥" + e._s(e.record.pay_price))])]), t("a-form-item", {
                attrs: {
                    label: "审核状态",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol,
                    extra: "同意后将退回付款金额并关闭订单"
                }
            }, [t("a-radio-group", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["status", {initialValue: 1, rules: [{required: !0}]}],
                    expression: "['status', { initialValue: 1, rules: [{ required: true }] }]"
                }]
            }, [t("a-radio", {attrs: {value: 1}}, [e._v("同意")]), t("a-radio", {attrs: {value: 0}}, [e._v("拒绝")])], 1)], 1)], 1)], 1)], 1)
        }, p = [], _ = {
            data: function () {
                return {
                    title: "审核取消订单",
                    labelCol: {span: 7},
                    wrapperCol: {span: 13},
                    visible: !1,
                    isLoading: !1,
                    form: this.$form.createForm(this),
                    record: {}
                }
            }, created: function () {
            }, methods: {
                show: function (e) {
                    this.visible = !0, this.record = e
                }, handleSubmit: function (e) {
                    var t = this;
                    e.preventDefault();
                    var a = this.form.validateFields;
                    a((function (e, a) {
                        !e && t.onFormSubmit(a)
                    }))
                }, handleCancel: function () {
                    this.visible = !1, this.form.resetFields()
                }, onFormSubmit: function (e) {
                    var t = this;
                    this.isLoading = !0, i["a"]({orderId: this.record.order_id, form: e}).then((function (a) {
                        t.$message.success(a.message, 1.5), t.handleCancel(), t.$emit("handleSubmit", e)
                    })).finally((function () {
                        t.isLoading = !1
                    }))
                }
            }
        }, v = _, f = Object(d["a"])(v, m, p, !1, null, null, null), b = f.exports, h = function () {
            var e = this, t = e._self._c;
            return t("a-modal", {
                attrs: {
                    title: e.title,
                    width: 560,
                    visible: e.visible,
                    isLoading: e.isLoading,
                    confirmLoading: e.isLoading,
                    maskClosable: !1
                }, on: {ok: e.handleSubmit, cancel: e.handleCancel}
            }, [t("a-spin", {attrs: {spinning: e.isLoading}}, [t("a-form", {attrs: {form: e.form}}, [t("a-form-item", {
                attrs: {
                    label: "订单金额",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol,
                    extra: "最终付款金额 = 订单金额 + 运费金额"
                }
            }, [t("a-input-number", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["order_price", {rules: [{required: !0, message: "请输入订单金额"}]}],
                    expression: "['order_price', { rules: [{ required: true, message: '请输入订单金额' }] }]"
                }], attrs: {min: .01, precision: 2}
            }), t("span", {staticClass: "ml-10"}, [e._v("元")])], 1), t("a-form-item", {
                attrs: {
                    label: "运费金额",
                    labelCol: e.labelCol,
                    wrapperCol: e.wrapperCol
                }
            }, [t("a-input-number", {
                directives: [{
                    name: "decorator",
                    rawName: "v-decorator",
                    value: ["express_price", {rules: [{required: !0, message: "请输入运费金额"}]}],
                    expression: "['express_price', { rules: [{ required: true, message: '请输入运费金额' }] }]"
                }], attrs: {min: 0, precision: 2}
            }), t("span", {staticClass: "ml-10"}, [e._v("元")])], 1)], 1)], 1)], 1)
        }, g = [], y = (a("a9e3"), a("2ef0")), C = a.n(y), E = {
            data: function () {
                return {
                    title: "修改订单金额",
                    labelCol: {span: 7},
                    wrapperCol: {span: 13},
                    visible: !1,
                    isLoading: !1,
                    form: this.$form.createForm(this),
                    record: {}
                }
            }, created: function () {
            }, methods: {
                show: function (e) {
                    this.visible = !0, this.record = e, this.setFieldsValue()
                }, setFieldsValue: function () {
                    var e = this.record, t = this.$nextTick, a = this.form.setFieldsValue;
                    t((function () {
                        var t = Number(e.update_price.value);
                        "-" === e.update_price.symbol && (t = -t), a({
                            order_price: C.a.add(Number(e.order_price), t),
                            express_price: Number(e.express_price)
                        })
                    }))
                }, handleSubmit: function (e) {
                    var t = this;
                    e.preventDefault();
                    var a = this.form.validateFields;
                    a((function (e, a) {
                        !e && t.onFormSubmit(a)
                    }))
                }, handleCancel: function () {
                    this.visible = !1, this.form.resetFields()
                }, onFormSubmit: function (e) {
                    var t = this;
                    this.isLoading = !0, i["d"]({orderId: this.record.order_id, form: e}).then((function (a) {
                        t.$message.success(a.message, 1.5), t.handleCancel(), t.$emit("handleSubmit", e)
                    })).finally((function () {
                        t.isLoading = !1
                    }))
                }
            }
        }, S = E, L = Object(d["a"])(S, h, g, !1, null, null, null), R = L.exports
    }, af3e: function (e, t, a) {
        "use strict";
        a("a4b5")
    }, b4a5: function (e, t, a) {
        "use strict";
        a.d(t, "a", (function () {
            return v
        })), a.d(t, "b", (function () {
            return C
        }));
        a("b0c0");
        var r = function () {
                var e = this, t = e._self._c;
                return t("a-modal", {
                    attrs: {
                        title: e.title,
                        width: 560,
                        visible: e.visible,
                        isLoading: e.isLoading,
                        confirmLoading: e.isLoading,
                        maskClosable: !1
                    }, on: {ok: e.handleSubmit, cancel: e.handleCancel}
                }, [t("a-spin", {attrs: {spinning: e.isLoading}}, [e.visible ? t("a-form", {attrs: {form: e.form}}, [t("a-form-item", {
                    attrs: {
                        label: "售后类型",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-tag", [e._v(e._s(e.RefundTypeEnum[e.record.type].name))])], 1), t("a-form-item", {
                    attrs: {
                        label: "审核状态",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-radio-group", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["audit_status", {initialValue: 10, rules: [{required: !0}]}],
                        expression: "['audit_status', { initialValue: 10, rules: [{ required: true }] }]"
                    }]
                }, [t("a-radio", {attrs: {value: 10}}, [e._v("同意")]), t("a-radio", {attrs: {value: 20}}, [e._v("拒绝")])], 1)], 1), e.form.getFieldValue("audit_status") == e.AuditStatusEnum.REVIEWED.value ? t("a-form-item", {
                    attrs: {
                        label: "退货地址",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["address_id", {rules: [{required: !0, message: "请选择退货地址"}]}],
                        expression: "['address_id', { rules: [{ required: true, message: '请选择退货地址' }] }]"
                    }], attrs: {placeholder: "请选择退货地址"}
                }, e._l(e.addressList, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.address_id}}, [e._v(e._s(a.full_address))])
                })), 1), t("div", {staticClass: "form-item-help"}, [t("router-link", {
                    attrs: {
                        target: "_blank",
                        to: {path: "/store/address/index"}
                    }
                }, [e._v("地址管理")])], 1)], 1) : e._e(), e.form.getFieldValue("audit_status") == e.AuditStatusEnum.REJECTED.value ? t("a-form-item", {
                    attrs: {
                        label: "拒绝原因",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-textarea", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["refuse_desc", {rules: [{required: !0, message: "请输入拒绝原因"}]}],
                        expression: "['refuse_desc', { rules: [{ required: true, message: '请输入拒绝原因' }] }]"
                    }], attrs: {autoSize: {minRows: 4}}
                })], 1) : e._e()], 1) : e._e()], 1)], 1)
            }, s = [], i = (a("d3b7"), a("ca00")), n = a("e585"), o = a("4d55"), l = a("6ab1"), d = a("5c06"),
            u = new d["a"]([{key: "DELIVERY", name: "发货地址", value: 10}, {
                key: "RETURN",
                name: "退货地址",
                value: 20
            }]), c = {
                data: function () {
                    return {
                        title: "售后单审核",
                        labelCol: {span: 7},
                        wrapperCol: {span: 13},
                        visible: !1,
                        isLoading: !1,
                        form: this.$form.createForm(this),
                        addressList: [],
                        record: {}
                    }
                }, beforeCreate: function () {
                    Object(i["a"])(this, {AuditStatusEnum: l["a"], RefundTypeEnum: l["c"]})
                }, created: function () {
                    this.getAddressList()
                }, methods: {
                    show: function (e) {
                        var t = this;
                        this.visible = !0, this.record = e, this.$nextTick((function () {
                            t.$forceUpdate()
                        }))
                    }, getAddressList: function () {
                        var e = this;
                        this.isLoading = !0, o["b"]({type: u.RETURN.value}).then((function (t) {
                            return e.addressList = t.data.list
                        })).finally((function () {
                            return e.isLoading = !1
                        }))
                    }, handleSubmit: function (e) {
                        var t = this;
                        e.preventDefault();
                        var a = this.form.validateFields;
                        a((function (e, a) {
                            !e && t.onFormSubmit(a)
                        }))
                    }, handleCancel: function () {
                        this.visible = !1, this.form.resetFields()
                    }, onFormSubmit: function (e) {
                        var t = this;
                        this.isLoading = !0, n["a"]({
                            orderRefundId: this.record.order_refund_id,
                            form: e
                        }).then((function (a) {
                            t.$message.success(a.message, 1.5), t.handleCancel(), t.$emit("handleSubmit", e)
                        })).finally((function () {
                            t.isLoading = !1
                        }))
                    }
                }
            }, m = c, p = (a("c0ce"), a("2877")), _ = Object(p["a"])(m, r, s, !1, null, "db92040e", null), v = _.exports,
            f = function () {
                var e = this, t = e._self._c;
                return t("a-modal", {
                    attrs: {
                        title: e.title,
                        width: 565,
                        visible: e.visible,
                        isLoading: e.isLoading,
                        confirmLoading: e.isLoading,
                        maskClosable: !1
                    }, on: {ok: e.handleSubmit, cancel: e.handleCancel}
                }, [t("a-spin", {attrs: {spinning: e.isLoading}}, [e.record.type == e.RefundTypeEnum.RETURN.value ? t("a-alert", {
                    attrs: {
                        message: "请确认已收到寄回的商品，确认后自动退回付款金额（原路退款）并关闭当前售后单",
                        banner: ""
                    }
                }) : e._e(), e.visible ? t("a-form", {attrs: {form: e.form}}, [t("a-form-item", {
                    attrs: {
                        label: "售后类型",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-tag", [e._v(e._s(e.RefundTypeEnum[e.record.type].name))])], 1), t("a-form-item", {
                    attrs: {
                        label: "订单付款的总金额",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("span", [e._v("￥" + e._s(e.record.orderData.pay_price) + "元")])]), t("a-form-item", {
                    attrs: {
                        label: "退款的金额",
                        labelCol: e.labelCol,
                        wrapperCol: e.wrapperCol
                    }
                }, [t("a-input-number", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["refund_money", {rules: [{required: !0, message: "请输入退款金额"}]}],
                        expression: "['refund_money', { rules: [{ required: true, message: '请输入退款金额' }] }]"
                    }], attrs: {min: .01, precision: 2}
                }), t("span", {staticClass: "ml-10"}, [e._v("元")]), t("div", {staticClass: "form-item-help"}, [t("p", {staticClass: "extra"}, [e._v("请输入退款金额，最多" + e._s(Math.min(e.record.orderGoods.total_pay_price, e.record.orderData.pay_price)) + "元，最多不能大于订单实际付款的总金额")])])], 1)], 1) : e._e()], 1)], 1)
            }, b = [], h = {
                data: function () {
                    return {
                        title: "确认收货并退款",
                        labelCol: {span: 8},
                        wrapperCol: {span: 13},
                        visible: !1,
                        isLoading: !1,
                        form: this.$form.createForm(this),
                        record: {}
                    }
                }, beforeCreate: function () {
                    Object(i["a"])(this, {AuditStatusEnum: l["a"], RefundTypeEnum: l["c"]})
                }, methods: {
                    show: function (e) {
                        var t = this;
                        this.visible = !0, this.record = e, this.$nextTick((function () {
                            t.$forceUpdate()
                        }))
                    }, handleSubmit: function (e) {
                        var t = this;
                        e.preventDefault();
                        var a = this.form.validateFields;
                        a((function (e, a) {
                            !e && t.onFormSubmit(a)
                        }))
                    }, handleCancel: function () {
                        this.visible = !1, this.form.resetFields()
                    }, onFormSubmit: function (e) {
                        var t = this;
                        this.isLoading = !0, n["d"]({
                            orderRefundId: this.record.order_refund_id,
                            form: e
                        }).then((function (a) {
                            t.$message.success(a.message, 1.5), t.handleCancel(), t.$emit("handleSubmit", e)
                        })).finally((function () {
                            t.isLoading = !1
                        }))
                    }
                }
            }, g = h, y = (a("3fdb"), Object(p["a"])(g, f, b, !1, null, "7478a84e", null)), C = y.exports
    }, b7a7: function (e, t, a) {
        "use strict";
        a("4290")
    }, c0ce: function (e, t, a) {
        "use strict";
        a("ce6c")
    }, ce6c: function (e, t, a) {
    }, e585: function (e, t, a) {
        "use strict";
        a.d(t, "c", (function () {
            return i
        })), a.d(t, "b", (function () {
            return n
        })), a.d(t, "a", (function () {
            return o
        })), a.d(t, "d", (function () {
            return l
        }));
        var r = a("b775"), s = {
            list: "/order.refund/list",
            detail: "/order.refund/detail",
            audit: "/order.refund/audit",
            receipt: "/order.refund/receipt"
        };

        function i(e) {
            return Object(r["b"])({url: s.list, method: "get", params: e})
        }

        function n(e) {
            return Object(r["b"])({url: s.detail, method: "get", params: e})
        }

        function o(e) {
            return Object(r["b"])({url: s.audit, method: "post", data: e})
        }

        function l(e) {
            return Object(r["b"])({url: s.receipt, method: "post", data: e})
        }
    }, ea1f: function (e, t, a) {
        "use strict";
        a.r(t);
        a("b0c0");
        var r = function () {
                var e = this, t = e._self._c;
                return t("a-card", {attrs: {bordered: !1}}, [t("a-spin", {attrs: {spinning: e.isLoading}}, [t("div", {staticClass: "card-title"}, [e._v(e._s(e.$route.meta.title))]), t("div", {staticClass: "table-operator"}, [t("a-row", {staticClass: "row-item-search"}, [t("a-form", {
                    staticClass: "search-form",
                    attrs: {form: e.searchForm, layout: "inline"},
                    on: {submit: e.handleSearch}
                }, [t("a-form-item", {attrs: {label: "关键词查询"}}, [t("a-input", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["searchValue"],
                        expression: "['searchValue']"
                    }], staticStyle: {width: "342px"}, attrs: {placeholder: "请输入关键词"}
                }, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["searchType", {initialValue: 10}],
                        expression: "['searchType', { initialValue: 10 }]"
                    }], staticStyle: {width: "100px"}, attrs: {slot: "addonBefore"}, slot: "addonBefore"
                }, e._l(e.SearchTypeEnum, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                })), 1)], 1)], 1), t("a-form-item", {attrs: {label: "售后类型"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["refundType", {initialValue: -1}],
                        expression: "['refundType', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.RefundTypeEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1), t("a-form-item", {attrs: {label: "售后单状态"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["refundStatus", {initialValue: -1}],
                        expression: "['refundStatus', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.RefundStatusEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1), t("a-form-item", {attrs: {label: "申请时间"}}, [t("a-range-picker", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["betweenTime"],
                        expression: "['betweenTime']"
                    }], attrs: {format: "YYYY-MM-DD"}
                })], 1), t("a-form-item", {staticClass: "search-btn"}, [t("a-button", {
                    attrs: {
                        type: "primary",
                        icon: "search",
                        "html-type": "submit"
                    }
                }, [e._v("搜索")])], 1), t("a-form-item", {staticClass: "search-btn"}, [t("a-button", {on: {click: e.handleReset}}, [e._v("重置")])], 1)], 1)], 1)], 1), t("div", {staticClass: "ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"}, [t("div", {staticClass: "ant-table-content"}, [t("div", {staticClass: "ant-table-body"}, [t("table", [t("thead", {staticClass: "ant-table-thead"}, [t("tr", e._l(e.columns, (function (a, r) {
                    return t("th", {key: r}, [t("span", {staticClass: "ant-table-header-column"}, [t("div", [t("span", {staticClass: "ant-table-column-title"}, [e._v(e._s(a.title))])])])])
                })), 0)]), t("tbody", {staticClass: "ant-table-tbody"}, [e._l(e.refundList.data, (function (a) {
                    return [t("tr", {
                        key: "refund_".concat(a.order_refund_id, "_1"),
                        staticClass: "order-empty"
                    }, [t("td", {attrs: {colspan: "8"}})]), t("tr", {key: "refund_".concat(a.order_refund_id, "_2")}, [t("td", {attrs: {colspan: "8"}}, [t("span", {staticClass: "mr-20"}, [e._v(e._s(a.create_time))]), t("span", [e._v("订单号：" + e._s(a.order_no))])])]), t("tr", {key: "refund_".concat(a.order_refund_id, "_3")}, [t("td", [t("GoodsItem", {
                        attrs: {
                            data: {
                                image: a.orderGoods.goods_image,
                                imageAlt: "商品图片",
                                title: a.orderGoods.goods_name,
                                goodsProps: a.orderGoods.goods_props
                            }
                        }
                    })], 1), t("td", [t("p", [e._v("￥" + e._s(a.orderGoods.goods_price))]), t("p", [e._v("×" + e._s(a.orderGoods.total_num))])]), t("td", [t("p", [e._v("￥" + e._s(a.orderGoods.total_pay_price))])]), t("td", [t("UserItem", {attrs: {user: a.user}})], 1), t("td", [t("a-tag", [e._v(e._s(e.RefundTypeEnum[a.type].name))])], 1), t("td", [t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("商家审核：")]), t("a-tag", {attrs: {color: e.renderAuditStatusColor(a.audit_status)}}, [e._v(e._s(e.AuditStatusEnum[a.audit_status].name))])], 1), a.type == e.RefundTypeEnum.RETURN.value ? t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("用户发货：")]), t("a-tag", {attrs: {color: a.is_user_send ? "green" : ""}}, [e._v(e._s(a.is_user_send ? "已发货" : "待发货"))])], 1) : e._e(), a.type == e.RefundTypeEnum.RETURN.value ? t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("商家收货：")]), t("a-tag", {attrs: {color: a.is_receipt ? "green" : ""}}, [e._v(e._s(a.is_receipt ? "已收货" : "待收货"))])], 1) : e._e()]), t("td", [t("a-tag", {attrs: {color: e.renderRefundStatusColor(a.status)}}, [e._v(e._s(e.RefundStatusEnum[a.status].name))])], 1), t("td", [t("div", {staticClass: "actions"}, [e.$auth("/order/refund/detail") ? t("router-link", {
                        attrs: {
                            to: {
                                path: "/order/refund/detail",
                                query: {orderRefundId: a.order_refund_id}
                            }
                        }
                    }, [e._v("详情")]) : e._e(), a.audit_status == e.AuditStatusEnum.WAIT.value ? t("a", {
                        directives: [{
                            name: "action",
                            rawName: "v-action:audit",
                            arg: "audit"
                        }], on: {
                            click: function (t) {
                                return e.handleAudit(a)
                            }
                        }
                    }, [e._v("审核")]) : e._e(), a.type == e.RefundTypeEnum.RETURN.value && a.audit_status == e.AuditStatusEnum.REVIEWED.value && a.is_user_send && !a.is_receipt ? t("a", {
                        directives: [{
                            name: "action",
                            rawName: "v-action:receipt",
                            arg: "receipt"
                        }], on: {
                            click: function (t) {
                                return e.handleReceipt(a)
                            }
                        }
                    }, [e._v("确认收货")]) : e._e()], 1)])])]
                }))], 2)])]), e.refundList.data.length ? e._e() : t("a-empty", {attrs: {image: e.simpleImage}})], 1)]), e.refundList.data.length ? t("div", {staticClass: "pagination"}, [t("a-pagination", {
                    attrs: {
                        current: e.page,
                        pageSize: e.refundList.per_page,
                        total: e.refundList.total
                    }, on: {change: e.onChangePage}
                })], 1) : e._e(), t("AuditForm", {
                    ref: "AuditForm",
                    on: {handleSubmit: e.handleRefresh}
                }), t("ReceiptForm", {ref: "ReceiptForm", on: {handleSubmit: e.handleRefresh}})], 1)], 1)
            }, s = [], i = a("ade3"), n = a("5530"), o = (a("06f4"), a("fc25")), l = (a("d3b7"), a("ca00")), d = a("e585"),
            u = a("ab09"), c = a("6ab1"), m = a("b4a5"), p = [{title: "商品信息", align: "center"}, {
                title: "单价/数量",
                align: "center",
                scopedSlots: {customRender: "unit_price"}
            }, {
                title: "付款金额",
                align: "center",
                dataIndex: "total_pay_price",
                scopedSlots: {customRender: "pay_price"}
            }, {title: "买家", dataIndex: "user", scopedSlots: {customRender: "user"}}, {
                title: "售后类型",
                dataIndex: "type",
                scopedSlots: {customRender: "type"}
            }, {title: "处理进度", dataIndex: "progress", scopedSlots: {customRender: "progress"}}, {
                title: "售后单状态",
                dataIndex: "status",
                scopedSlots: {customRender: "status"}
            }, {title: "操作", dataIndex: "action", width: "180px", scopedSlots: {customRender: "action"}}],
            _ = [{name: "订单号", value: 10}, {name: "会员昵称", value: 20}, {name: "会员ID", value: 30}], v = {
                name: "Index",
                components: {GoodsItem: u["a"], UserItem: u["c"], AuditForm: m["a"], ReceiptForm: m["b"]},
                data: function () {
                    return {
                        searchForm: this.$form.createForm(this),
                        queryParam: {},
                        isLoading: !1,
                        columns: p,
                        page: 1,
                        refundList: {data: [], total: 0, per_page: 10}
                    }
                },
                beforeCreate: function () {
                    Object(l["a"])(this, {
                        inArray: l["e"],
                        AuditStatusEnum: c["a"],
                        RefundStatusEnum: c["b"],
                        RefundTypeEnum: c["c"],
                        SearchTypeEnum: _,
                        simpleImage: o["a"].PRESENTED_IMAGE_SIMPLE
                    })
                },
                created: function () {
                    this.init()
                },
                methods: {
                    init: function () {
                        this.searchForm.resetFields(), this.queryParam = {}, this.handleRefresh(!0)
                    }, getList: function () {
                        var e = this, t = this.queryParam, a = this.page;
                        return this.isLoading = !0, d["c"](Object(n["a"])(Object(n["a"])({}, t), {}, {page: a})).then((function (t) {
                            e.refundList = t.data.list
                        })).finally((function () {
                            e.isLoading = !1
                        }))
                    }, renderAuditStatusColor: function (e) {
                        var t, a = this.AuditStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.WAIT.value, ""), Object(i["a"])(t, a.REVIEWED.value, "green"), Object(i["a"])(t, a.REJECTED.value, "red"), t);
                        return r[e]
                    }, renderRefundStatusColor: function (e) {
                        var t, a = this.RefundStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.NORMAL.value, ""), Object(i["a"])(t, a.REJECTED.value, "red"), Object(i["a"])(t, a.COMPLETED.value, "green"), Object(i["a"])(t, a.CANCELLED.value, "red"), t);
                        return r[e]
                    }, handleRefresh: function () {
                        var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
                        e && (this.page = 1), this.getList()
                    }, handleSearch: function (e) {
                        var t = this;
                        e.preventDefault(), this.searchForm.validateFields((function (e, a) {
                            e || (t.queryParam = Object(n["a"])(Object(n["a"])({}, t.queryParam), a), t.handleRefresh(!0))
                        }))
                    }, handleReset: function () {
                        this.searchForm.resetFields()
                    }, onChangePage: function (e) {
                        this.page = e, this.handleRefresh()
                    }, handleAudit: function (e) {
                        this.$refs.AuditForm.show(e)
                    }, handleReceipt: function (e) {
                        this.$refs.ReceiptForm.show(e)
                    }
                }
            }, f = v, b = (a("5cd4"), a("2877")), h = Object(b["a"])(f, r, s, !1, null, "3da161e7", null);
        t["default"] = h.exports
    }, f0a9: function (e, t, a) {
        "use strict";
        a("7ebd")
    }, fecbd: function (e, t, a) {
        "use strict";
        a.r(t);
        a("b0c0"), a("99af"), a("caad"), a("2532");
        var r = function () {
                var e = this, t = e._self._c;
                return t("a-card", {attrs: {bordered: !1}}, [t("a-spin", {attrs: {spinning: e.isLoading}}, [t("div", {staticClass: "card-title"}, [e._v(e._s(e.$route.meta.title))]), t("div", {staticClass: "table-operator"}, [t("a-row", {staticClass: "row-item-search"}, [t("a-form", {
                    staticClass: "search-form",
                    attrs: {form: e.searchForm, layout: "inline"},
                    on: {submit: e.handleSearch}
                }, [t("a-form-item", {attrs: {label: "关键词"}}, [t("a-input", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["searchValue"],
                        expression: "['searchValue']"
                    }], staticStyle: {width: "342px"}, attrs: {placeholder: "请输入关键词"}
                }, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["searchType", {initialValue: 10}],
                        expression: "['searchType', { initialValue: 10 }]"
                    }], staticStyle: {width: "100px"}, attrs: {slot: "addonBefore"}, slot: "addonBefore"
                }, e._l(e.SearchTypeEnum, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                })), 1)], 1)], 1), t("a-form-item", {attrs: {label: "订单来源"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["orderSource", {initialValue: -1}],
                        expression: "['orderSource', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.OrderSourceEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1), t("a-form-item", {attrs: {label: "支付方式"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["payType", {initialValue: -1}],
                        expression: "['payType', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.PayTypeEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1), t("a-form-item", {attrs: {label: "配送方式"}}, [t("a-select", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["deliveryType", {initialValue: -1}],
                        expression: "['deliveryType', { initialValue: -1 }]"
                    }]
                }, [t("a-select-option", {attrs: {value: -1}}, [e._v("全部")]), e._l(e.DeliveryTypeEnum.data, (function (a, r) {
                    return t("a-select-option", {key: r, attrs: {value: a.value}}, [e._v(e._s(a.name))])
                }))], 2)], 1), t("a-form-item", {attrs: {label: "下单时间"}}, [t("a-range-picker", {
                    directives: [{
                        name: "decorator",
                        rawName: "v-decorator",
                        value: ["betweenTime"],
                        expression: "['betweenTime']"
                    }], attrs: {format: "YYYY-MM-DD"}
                })], 1), t("a-form-item", {staticClass: "search-btn"}, [t("a-button", {
                    attrs: {
                        type: "primary",
                        icon: "search",
                        "html-type": "submit"
                    }
                }, [e._v("搜索")])], 1), t("a-form-item", {staticClass: "search-btn"}, [t("a-button", {on: {click: e.handleReset}}, [e._v("重置")])], 1)], 1)], 1)], 1), t("div", {staticClass: "ant-table ant-table-scroll-position-left ant-table-default ant-table-bordered"}, [t("div", {staticClass: "ant-table-content"}, [t("div", {staticClass: "ant-table-body"}, [t("table", [t("thead", {staticClass: "ant-table-thead"}, [t("tr", e._l(e.columns, (function (a, r) {
                    return t("th", {key: r}, [t("span", {staticClass: "ant-table-header-column"}, [t("div", [t("span", {staticClass: "ant-table-column-title"}, [e._v(e._s(a.title))])])])])
                })), 0)]), t("tbody", {staticClass: "ant-table-tbody"}, [e._l(e.orderList.data, (function (a) {
                    return [t("tr", {
                        key: "order_".concat(a.order_id, "_1"),
                        staticClass: "order-empty"
                    }, [t("td", {attrs: {colspan: "8"}})]), t("tr", {key: "order_".concat(a.order_id, "_2")}, [t("td", {attrs: {colspan: "8"}}, [t("span", {staticClass: "mr-20"}, [e._v(e._s(a.create_time))]), t("span", {staticClass: "mr-20"}, [e._v("订单号：" + e._s(a.order_no))]), t("platform-icon", {
                        attrs: {
                            name: a.platform,
                            showTips: !0
                        }
                    })], 1)]), e._l(a.goods, (function (r, s) {
                        return t("tr", {key: "orderGoods_".concat(a.order_id, "_").concat(s)}, [t("td", [t("GoodsItem", {
                            attrs: {
                                data: {
                                    image: r.goods_image,
                                    imageAlt: "商品图片",
                                    title: r.goods_name,
                                    goodsProps: r.goods_props
                                }
                            }
                        })], 1), t("td", [t("p", [e._v("￥" + e._s(r.goods_price))]), t("p", [e._v("×" + e._s(r.total_num))])]), 0 === s ? [t("td", {attrs: {rowspan: a.goods.length}}, [t("p", [e._v("￥" + e._s(a.pay_price))]), t("p", {staticClass: "c-muted-1"}, [e._v("(含运费：￥" + e._s(a.express_price) + ")")])]), t("td", {attrs: {rowspan: a.goods.length}}, [t("UserItem", {attrs: {user: a.user}})], 1), t("td", {attrs: {rowspan: a.goods.length}}, [t("a-tag", [e._v(e._s(e.PayTypeEnum[a.pay_type].name))])], 1), t("td", {attrs: {rowspan: a.goods.length}}, [t("a-tag", [e._v(e._s(e.DeliveryTypeEnum[a.delivery_type].name))])], 1), t("td", {attrs: {rowspan: a.goods.length}}, [t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("付款状态：")]), t("a-tag", {attrs: {color: a.pay_status == e.PayStatusEnum.SUCCESS.value ? "green" : ""}}, [e._v(e._s(e.PayStatusEnum[a.pay_status].name))])], 1), t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("发货状态：")]), t("a-tag", {attrs: {color: a.delivery_status == e.DeliveryStatusEnum.DELIVERED.value ? "green" : ""}}, [e._v(e._s(e.DeliveryStatusEnum[a.delivery_status].name))])], 1), t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("收货状态：")]), t("a-tag", {attrs: {color: a.receipt_status == e.ReceiptStatusEnum.RECEIVED.value ? "green" : ""}}, [e._v(e._s(e.ReceiptStatusEnum[a.receipt_status].name))])], 1), [e.OrderStatusEnum.CANCELLED.value, e.OrderStatusEnum.APPLY_CANCEL.value].includes(a.order_status) ? t("p", {staticClass: "mtb-2"}, [t("span", {staticClass: "f-13"}, [e._v("订单状态：")]), t("a-tag", {attrs: {color: e.renderOrderStatusColor(a.order_status)}}, [e._v(e._s(e.OrderStatusEnum[a.order_status].name))])], 1) : e._e()]), t("td", {attrs: {rowspan: a.goods.length}}, [t("div", {staticClass: "actions"}, [e.$auth("/order/detail") ? t("router-link", {
                            attrs: {
                                to: {
                                    path: "/order/detail",
                                    query: {orderId: a.order_id}
                                }
                            }
                        }, [e._v("详情")]) : e._e(), a.pay_status != e.PayStatusEnum.SUCCESS.value || a.delivery_type != e.DeliveryTypeEnum.EXPRESS.value || a.delivery_status != e.DeliveryStatusEnum.NOT_DELIVERED.value || e.inArray(a.order_status, [e.OrderStatusEnum.CANCELLED.value, e.OrderStatusEnum.APPLY_CANCEL.value]) ? e._e() : t("a", {
                            directives: [{
                                name: "action",
                                rawName: "v-action:deliver",
                                arg: "deliver"
                            }], on: {
                                click: function (t) {
                                    return e.handleDelivery(a)
                                }
                            }
                        }, [e._v("发货")]), a.order_status == e.OrderStatusEnum.APPLY_CANCEL.value ? t("a", {
                            directives: [{
                                name: "action",
                                rawName: "v-action:cancel",
                                arg: "cancel"
                            }], on: {
                                click: function (t) {
                                    return e.handleCancel(a)
                                }
                            }
                        }, [e._v("审核取消")]) : e._e(), t("a", {
                            directives: [{
                                name: "action",
                                rawName: "v-action:delete",
                                arg: "delete"
                            }], on: {
                                click: function (t) {
                                    return e.handleDelete(a)
                                }
                            }
                        }, [e._v("删除")])], 1)])] : e._e()], 2)
                    }))]
                }))], 2)])]), e.orderList.data.length ? e._e() : t("a-empty", {attrs: {image: e.simpleImage}})], 1)]), e.orderList.data.length ? t("div", {staticClass: "pagination"}, [t("a-pagination", {
                    attrs: {
                        current: e.page,
                        pageSize: e.orderList.per_page,
                        total: e.orderList.total
                    }, on: {change: e.onChangePage}
                })], 1) : e._e(), t("DeliveryForm", {
                    ref: "DeliveryForm",
                    on: {handleSubmit: e.handleRefresh}
                }), t("CancelForm", {ref: "CancelForm", on: {handleSubmit: e.handleRefresh}})], 1)], 1)
            }, s = [], i = a("ade3"), n = a("5530"), o = (a("06f4"), a("fc25")), l = (a("d3b7"), a("ca00")), d = a("3a10"),
            u = a("884a"), c = a("8d5f"), m = a("ab09"), p = a("4a95"), _ = a("ac82"), v = [{
                title: "商品信息",
                align: "center",
                dataIndex: "goods",
                scopedSlots: {customRender: "goods"}
            }, {title: "单价/数量", align: "center", scopedSlots: {customRender: "unit_price"}}, {
                title: "实付款",
                align: "center",
                dataIndex: "pay_price",
                scopedSlots: {customRender: "pay_price"}
            }, {title: "买家", dataIndex: "user", scopedSlots: {customRender: "user"}}, {
                title: "支付方式",
                dataIndex: "pay_type",
                scopedSlots: {customRender: "pay_type"}
            }, {
                title: "配送方式",
                dataIndex: "delivery_type",
                scopedSlots: {customRender: "delivery_type"}
            }, {title: "交易状态", dataIndex: "status", scopedSlots: {customRender: "status"}}, {
                title: "操作",
                dataIndex: "action",
                width: "180px",
                scopedSlots: {customRender: "action"}
            }], f = [{name: "订单号", value: 10}, {name: "会员昵称", value: 20}, {
                name: "会员ID",
                value: 30
            }, {name: "收货人姓名", value: 40}, {name: "收货人电话", value: 50}], b = {
                name: "Index",
                components: {
                    PlatformIcon: c["a"],
                    GoodsItem: m["a"],
                    UserItem: m["c"],
                    DeliveryForm: _["b"],
                    CancelForm: _["a"]
                },
                data: function () {
                    return {
                        dataType: this.getDataType(),
                        searchForm: this.$form.createForm(this),
                        queryParam: {},
                        isLoading: !1,
                        columns: v,
                        page: 1,
                        orderList: {data: [], total: 0, per_page: 10}
                    }
                },
                beforeCreate: function () {
                    Object(l["a"])(this, {
                        inArray: l["e"],
                        DeliveryStatusEnum: p["a"],
                        DeliveryTypeEnum: p["b"],
                        OrderSourceEnum: p["c"],
                        OrderStatusEnum: p["d"],
                        PayStatusEnum: p["e"],
                        PayTypeEnum: p["f"],
                        ReceiptStatusEnum: p["g"],
                        SearchTypeEnum: f,
                        simpleImage: o["a"].PRESENTED_IMAGE_SIMPLE
                    })
                },
                created: function () {
                    this.init()
                },
                watch: {
                    $route: function () {
                        this.init()
                    }
                },
                methods: {
                    init: function () {
                        this.dataType = this.getDataType(), this.searchForm.resetFields(), this.queryParam = {}, this.handleRefresh(!0)
                    }, getDataType: function () {
                        return this.$route.path.split("/")[3]
                    }, getList: function () {
                        var e = this, t = this.dataType, a = this.queryParam, r = this.page;
                        return this.isLoading = !0, d["b"](Object(n["a"])(Object(n["a"])({dataType: t}, a), {}, {page: r})).then((function (t) {
                            e.orderList = t.data.list
                        })).finally((function () {
                            e.isLoading = !1
                        }))
                    }, renderOrderStatusColor: function (e) {
                        var t, a = this.OrderStatusEnum,
                            r = (t = {}, Object(i["a"])(t, a.NORMAL.value, ""), Object(i["a"])(t, a.CANCELLED.value, "red"), Object(i["a"])(t, a.APPLY_CANCEL.value, "red"), Object(i["a"])(t, a.COMPLETED.value, "green"), t);
                        return r[e]
                    }, handleRefresh: function () {
                        var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
                        e && (this.page = 1), this.getList()
                    }, handleSearch: function (e) {
                        var t = this;
                        e.preventDefault(), this.searchForm.validateFields((function (e, a) {
                            e || (t.queryParam = Object(n["a"])(Object(n["a"])({}, t.queryParam), a), t.handleRefresh(!0))
                        }))
                    }, handleReset: function () {
                        this.searchForm.resetFields()
                    }, onChangePage: function (e) {
                        this.page = e, this.handleRefresh()
                    }, handleDelete: function (e) {
                        var t = this, a = t.$confirm({
                            title: "您确定要删除该订单记录吗?",
                            content: "删除后不可恢复，请谨慎操作",
                            onOk: function () {
                                return u["b"](e.order_id).then((function (e) {
                                    t.$message.success(e.message, 1.5), t.handleRefresh()
                                })).finally((function (e) {
                                    a.destroy()
                                }))
                            }
                        })
                    }, handleDelivery: function (e) {
                        this.$refs.DeliveryForm.show(e)
                    }, handleCancel: function (e) {
                        this.$refs.CancelForm.show(e)
                    }
                }
            }, h = b, g = (a("0c4f"), a("2877")), y = Object(g["a"])(h, r, s, !1, null, "1f0c2ea2", null);
        t["default"] = y.exports
    }
}]);